<style>
    .layui-form-label {
        width: 160px;
    }
</style>
<div class="widget-head" style="margin-top:0;">
    <div class="widget-title">公众号设置</div>
</div>
<div class="layui-container" style="width:100%;">
    <form class="layui-form" action="/admin/config/edit_post">
        <div class="layui-form-item">
            <label class="layui-form-label">token</label>
            <div class="layui-input-block">
                <input type="text" name="config[token]" value="{$info.config.token}" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">appid</label>
            <div class="layui-input-block">
                <input type="text" name="config[appid]" value="{$info.config.appid}" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">appsecret</label>
            <div class="layui-input-block">
                <input type="text" name="config[appsecret]" value="{$info.config.appsecret}" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">encodingaeskey</label>
            <div class="layui-input-block">
                <input type="text" name="config[encodingaeskey]" value="{$info.config.encodingaeskey}" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">mch_id</label>
            <div class="layui-input-inline" style="width: 500px">
                <input type="text" name="config[mch_id]" value="{$info.config.mch_id}" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">可选,使用支付功能时需要</div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">mch_key</label>
            <div class="layui-input-inline" style="width: 500px">
                <input type="text" name="config[mch_key]" value="{$info.config.mch_key}" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">可选,使用支付功能时需要</div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="hidden" name="name" value="公众号设置">
                <input type="hidden" name="key" value="{$info.key}">
                <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>